<template>
  <div>
    <!-- <input type="text" @keydown.enter="fn"> -->

    <input type="text" @keydown.esc="fn">
  </div>
</template>

<script>
export default {
  methods: {
    fn(){
      console.log('fn');
    }
  }
}
</script>

<style>

</style>